#include <iostream>
#include <vector>

using namespace std;

class NumMatrix {
  private:
    int** sums;

  public:
    NumMatrix(vector<vector<int>>& matrix) { 
        int r = matrix.size();
        int c = matrix[0].size();
        sums = new int*[];
    }

    int sumRegion(int row1, int col1, int row2, int col2) {
        int ans = 0;
        for (int row = row1; row <= row2; row++) {
            for (int col = col1; col <= col2; col++) {
                ans += m[row][col];
            }
        }
        return ans;
    }
};